[VERSN2]
unlock_memory all
speedreflect auto

if file_exists absolute LANGUAGES\ENGLISH.BIN
do
append _Strings\English.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\CHINESE.BIN
do
append _Strings\Chinese.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\DANISH.BIN
do
append _Strings\Danish.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\FINNISH.BIN
do
append _Strings\Finnish.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\FRENCH.BIN
do
append _Strings\French.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\GERMAN.BIN
do
append _Strings\German.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\ITALIAN.BIN
do
append _Strings\Italian.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\KOREAN.BIN
do
append _Strings\Korean.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\POLISH.BIN
do
append _Strings\Polish.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\SPANISH.BIN
do
append _Strings\Spanish.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\SWEDISH.BIN
do
append _Strings\Swedish.end 
else
// do nothing
end

if collection_exists FRONTEND\FRONTB.LZC TPKBlocks DEFAULT
do
bind_textures synchronize Frontend\FrontB.lzc TPKBlocks DEFAULT _Textures\FrontB\FrontendTextures
else
bind_textures synchronize Frontend\FrontB.lzc TPKBlocks FRONTENDTEXTURES _Textures\FrontB\FrontendTextures

end

// Stock Color
combobox "Red" "Blue" "Yellow" "White" "Grey" "Black" "Green" "Orange" "Choose Stock Color"

"Red"
copy_collection GLOBAL\GLOBALB.LZC CarTypeInfos PUNTO PEUGOT106
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos PEUGOT106 ManufacturerName PEUGEOT
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos PEUGOT106 DefaultBasePaint GLOSS_L1_COLOR44

"Blue"
copy_collection GLOBAL\GLOBALB.LZC CarTypeInfos PUNTO PEUGOT106
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos PEUGOT106 ManufacturerName PEUGEOT
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos PEUGOT106 DefaultBasePaint GLOSS_L1_COLOR35

"Yellow"
copy_collection GLOBAL\GLOBALB.LZC CarTypeInfos PUNTO PEUGOT106
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos PEUGOT106 ManufacturerName PEUGEOT
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos PEUGOT106 DefaultBasePaint GLOSS_L1_COLOR27

"White"
copy_collection GLOBAL\GLOBALB.LZC CarTypeInfos PUNTO PEUGOT106
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos PEUGOT106 ManufacturerName PEUGEOT

"Grey"
copy_collection GLOBAL\GLOBALB.LZC CarTypeInfos PUNTO PEUGOT106
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos PEUGOT106 ManufacturerName PEUGEOT
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos PEUGOT106 DefaultBasePaint METAL_L1_COLOR22

"Black"
copy_collection GLOBAL\GLOBALB.LZC CarTypeInfos PUNTO PEUGOT106
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos PEUGOT106 ManufacturerName PEUGEOT
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos PEUGOT106 DefaultBasePaint GLOSS_L1_COLOR62

"Green"
copy_collection GLOBAL\GLOBALB.LZC CarTypeInfos PUNTO PEUGOT106
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos PEUGOT106 ManufacturerName PEUGEOT
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos PEUGOT106 DefaultBasePaint GLOSS_L1_COLOR30

"Orange"
copy_collection GLOBAL\GLOBALB.LZC CarTypeInfos PUNTO PEUGOT106
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos PEUGOT106 ManufacturerName PEUGEOT
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos PEUGOT106 DefaultBasePaint METAL_L1_COLOR25

end

// Vinyls
combobox "512x Vinyl" "1024x Vinyl" "Choose Vinyl Resolution"

"512x Vinyl"
move_file override relative absolute _Vinyls\512\VINYLS.BIN CARS\PEUGOT106\VINYLS.BIN

"1024x Vinyl"
move_file override relative absolute _Vinyls\1024\VINYLS.BIN CARS\PEUGOT106\VINYLS.BIN

end

// Copy car files
if directory_exists absolute CARS\PEUGOT106
do // nothing
else
create_folder absolute CARS\PEUGOT106
end

move_file override relative absolute _Main\CARS\PEUGOT106\GEOMETRY.BIN CARS\PEUGOT106\GEOMETRY.BIN
move_file override relative absolute _Main\CARS\PEUGOT106\TEXTURES.BIN CARS\PEUGOT106\TEXTURES.BIN

// Unlimiter Config
move_file override relative absolute _Main\scripts\UnlimiterData\PEUGOT106.ini scripts\UnlimiterData\PEUGOT106.ini

import override GLOBAL\GLOBALB.LZC DBModelParts "_CarParts\DBMODELPART.bin"
import override GLOBAL\GLOBALB.LZC Collisions "_CarParts\COLLISION.bin"
import negate GLOBAL\GLOBALB.LZC SlotOverrides "_CarParts\PEUGOT106_PART_SPOILER.BIN"
import override FRONTEND\FRONTB.LZC TPKBlocks "_CarParts\WSTSDRZ_FE.BIN"

watermark "Vee's Binary Installer Template"